﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using myWindowsMediaPlayer.ViewModel;
using myWindowsMediaPlayer.Model;

namespace myWindowsMediaPlayer.View
{
    /// <summary>
    /// Interaction logic for libraryView.xaml
    /// </summary>
    public partial class libraryView : UserControl
    {
        public libraryView()
        {
            InitializeComponent();
        }

        private void TreeViewItem_Selected(object sender, RoutedEventArgs e)
        {
            pictureView1.Visibility = Visibility.Hidden;
            movieView1.Visibility = Visibility.Hidden;
            musicView1.Visibility = Visibility.Visible;
            showMedia.Visibility = Visibility.Hidden;

        }

        private void TreeViewItem_Selected_1(object sender, RoutedEventArgs e)
        {
            pictureView1.Visibility = Visibility.Visible;
            movieView1.Visibility = Visibility.Hidden;
            musicView1.Visibility = Visibility.Hidden;
            showMedia.Visibility = Visibility.Hidden;
        }

        private void TreeViewItem_Selected_2(object sender, RoutedEventArgs e)
        {
            pictureView1.Visibility = Visibility.Hidden;
            movieView1.Visibility = Visibility.Visible;
            musicView1.Visibility = Visibility.Hidden;
            showMedia.Visibility = Visibility.Hidden;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            pictureView1.Visibility = Visibility.Hidden;
            movieView1.Visibility = Visibility.Hidden;
            musicView1.Visibility = Visibility.Hidden;
            showMedia.Visibility = Visibility.Visible;
        }
    }
}
